import citys
citynames = citys.city_names
def clean(name):
    # 970481
    name =  name.replace('\n','').replace(' ','').replace('（','(').replace('）',')')
    if name[-2:] == '有限':
        name = name[:-2]
    if name[-4:] == '有限公司':
        name = name[:-4]
    #915985
    if "市" in name[:5]:
        i = name.index("市")
        if name[:i+1] in citynames:
            name = name[i+1:]
    return name

